package cn.lh.feignClient;

import cn.lh.domain.Store;
import cn.lh.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "store-server", fallbackFactory = StoreFeignClickFallbackFactory.class)
@RequestMapping("/store")
public interface StoreFeignClient {
    @PutMapping
    JsonResult add(@RequestBody Store store);
}
